<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="renderer" content="webkit">
  <title></title>
  <link rel="stylesheet" href="${pageContext.request.contextPath}/css/pintuer.css">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/css/admin.css">
  <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
  <script src="${pageContext.request.contextPath}/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel margin-top">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>编辑用户</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="${pageContext.request.contextPath}/userServlet?method=update&userid=${user.userid}">
      <div class="form-group">
        <div class="label">
          <label>修改用户名</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="title" value="${user.username}" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>修改密码</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="s_title" value="${user.password}"/>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>修改年龄</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="s_keywords" value="${user.age}"/>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>请选择性别</label>
        </div>
        <div class="field" style="margin-top: 8px">
          <input type="radio"  name="sex" value="男" <c:if test="${user.sex == '男'}">checked</c:if> />男
          <input type="radio"  name="sex" value="女" <c:if test="${user.sex == '女'}">checked</c:if> />女
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>请设置权限等级</label>
        </div>
        <div class="field" style="margin-top: 8px">
          <input type="radio"  name="role" value="管理员" <c:if test="${user.role == '管理员'}">checked</c:if> />管理员
          <input type="radio"  name="role" value="老师" <c:if test="${user.role == '老师'}">checked</c:if> />老师
          <input type="radio"  name="role" value="学生" <c:if test="${user.role == '学生'}">checked</c:if> />学生
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit">确认</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body></html>
